<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css">
	<title></title>
</head>
<body>
	<div class='status'>
		<span>类型属性列表</span><a class='add' href="<?php echo U('addAttr',array('tid'=>$_GET['tid']));?>"><strong>添加类型属性<b></b></strong></a>
		<a  class='back' href='<?php echo U('index');?>'><strong>返回类型列表<b></b></strong></a>
	</div>
	<div>
		<table class='table' cellspacing='0px' cellpadding='0px'>
			<tr>
				<th>ID</th>
				<th>属性名称</th>
				<th>属性类型</th>
				<th>属性值</th>
				<th>操作</th>
			</tr>
			<?php if(is_array($data)): foreach($data as $key=>$v): ?><tr>
				<td><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["name"]); ?></td>
				<td>
				<?php if($v['type']): ?>规格
				<?php else: ?>
				属性<?php endif; ?>
				</td>
				<td><?php echo ($v["value"]); ?></td>
				<td><a href="<?php echo U('updateAttr',array('aid'=>$v['id'],'tid'=>$_GET['tid']));?>">修改</a><a href="<?php echo U('delAttr',array('aid'=>$v['id'],'tid'=>$_GET['tid']));?>">删除</a></td>
			</tr><?php endforeach; endif; ?>
			<tr>
				<td colspan='5' class='td_center'><?php echo ($page); ?></td>
			</tr>
		</table>
	</div>
</body>
</html>